<p>
  <b>Title:</b>
  <%=h @document.title %> (<%=h number_to_human_size @document.size %>)
</p>

<p>
  <b>Preview:</b>
  <% if Document::IMAGE.include?(@document.content_type) %>
    <%= image_tag url_for :controller => :documents, :action => :image, :id => @document.id %>
  <% else %>
    <%= link_to 'Download', {:controller => :documents, :action => :item, :id => @document.id} %>
  <% end %>
</p>

<p>
  <b>Content Type:</b>
  <%=h @document.content_type %>
</p>

<p>
  <b>Description:</b>
  <%=h @document.description %>
</p>


<%= link_to 'Edit', edit_document_path(@document) %> |
<%= link_to 'Back', documents_path %>